package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年7月28日 下午1:50:06 
 * 类说明 
 */
public class PsCPayslipVw2Primary implements Serializable {

	private static final long serialVersionUID = -3128467228919356493L;

	private String calRunId;

	private String emplid;

	private BigDecimal seqnbr;

	private BigDecimal seqno;

	private String year;

	public String getCalRunId() {
		return calRunId;
	}

	public void setCalRunId(String calRunId) {
		this.calRunId = calRunId;
	}

	public String getEmplid() {
		return emplid;
	}

	public void setEmplid(String emplid) {
		this.emplid = emplid;
	}

	public BigDecimal getSeqnbr() {
		return seqnbr;
	}

	public void setSeqnbr(BigDecimal seqnbr) {
		this.seqnbr = seqnbr;
	}

	public BigDecimal getSeqno() {
		return seqno;
	}

	public void setSeqno(BigDecimal seqno) {
		this.seqno = seqno;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
	
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((calRunId == null) ? 0 : calRunId.hashCode());
		result = prime * result + ((emplid == null) ? 0 : emplid.hashCode());
		result = prime * result + ((seqnbr == null) ? 0 : seqnbr.hashCode());
		result = prime * result + ((seqno == null) ? 0 : seqno.hashCode());
		result = prime * result + ((year == null) ? 0 : year.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCPayslipVw2Primary other = (PsCPayslipVw2Primary) obj;
		if (calRunId == null) {
			if (other.calRunId != null)
				return false;
		} else if (!calRunId.equals(other.calRunId))
			return false;
		if (emplid == null) {
			if (other.emplid != null)
				return false;
		} else if (!emplid.equals(other.emplid))
			return false;
		if (seqnbr == null) {
			if (other.seqnbr != null)
				return false;
		} else if (!seqnbr.equals(other.seqnbr))
			return false;
		if (seqno == null) {
			if (other.seqno != null)
				return false;
		} else if (!seqno.equals(other.seqno))
			return false;
		if (year == null) {
			if (other.year != null)
				return false;
		} else if (!year.equals(other.year))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
 